#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main(int argc, char *argv[])
{
    int i = 0;
    char *str ;
    for (i = 0; i < argc; ++i){
        printf("argv[%d] = %s, length = %d\n", i, argv[i], strlen(argv[i]));
    }

    str = (char *)malloc(strlen(argv[i]) + 10);
    str = argv[1];
    printf("str = %s\n", str);
    return 0;
}
